package com.yue.config;

import com.yue.bean.Hb;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ComponentScan("com.yue.bean")
@PropertySource(value = {"classpath:/hb.properties"},encoding = "utf-8")
public class BeanLifeConfig {
  @Bean(initMethod = "init")
    public Hb hb(){
      return new Hb();
  }
}
